package com.ordos.recruit.module.file.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;
import java.io.Serializable;

/**
 * 文件存储信息表(TbFileInfo)实体类
 *
 * @author fw
 * @since 2025-07-02 16:46:19
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(schema = "TB_FILE_INFO")
public class TbFileInfo implements Serializable {
    private static final long serialVersionUID = -29083412367021112L;

    @Column(name = "ID")
    private String id;
    /**
     * 文件类型
     */
    @Column(name = "FILE_TYPE")
    private String fileType;
    /**
     * 文件路径
     */
    @Column(name = "FILE_PATH")
    private String filePath;
    /**
     * 文件名
     */
    @Column(name = "FILE_NAME")
    private String fileName;
    /**
     * 文件原名
     */
    @Column(name = "FILE_ORIGINAL_NAME")
    private String fileOriginalName;
    /**
     * 文件编码
     */
    @Column(name = "FILE_CODE")
    private String fileCode;
    /**
     * 文件缩略图文件地址
     */
    @Column(name = "THUMB")
    private String thumb;
    /**
     * 创建人
     */
    @Column(name = "CREATE_USER")
    private String createUser;
    /**
     * 创建日期
     */
    @Column(name = "CREATE_DATE")
    private Date createDate;
    /**
     * 修改日期
     */
    @Column(name = "UPDATE_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;

}

